package com.zdk.springcloudorder.controller;

import com.zdk.springcloudorder.service.ClientUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author quavario@gmail.com
 * @date 2021/11/30 15:09
 */
@RestController
@RequestMapping(value = "order")
public class DemoController{

    @Autowired
    private ClientUtil clientUtil;

    @GetMapping(value = "test")
    public String demo(String name){
        String s = clientUtil.stockTest(name);
        return name+"拿到了订单,并且"+s;
    }


}
